#ifndef LZO_H
#define LZO_H
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
typedef unsigned char byte;

class lzo
{
public:
    static int  compress(byte  *in, unsigned in_len, byte *out);
    static int  decompress(byte *in, unsigned in_len, byte *out);
    static int charcopy(char *p,const char *src,long len)     //定义字符拷贝函数
        {
            for(int i=0;i<len;i++)
                p[i]=src[i];
            return 0;
        }


 protected:
     static unsigned _do_compress (byte *in, unsigned in_len, byte *out, unsigned *out_len);
 };


 #endif // LZO_H
